import Mock from 'mockjs'

//测试的mock数据方法
export function resMockDatas(reqUrl) {
	switch (reqUrl) {
		case '/long':
			return {
				mockFlag: true,
				data: Mock.mock({
					"list|10": [{
						'age|18-45':1,
						'id':'@id',
						'userName':('@cname'),
						'addr':('@city(true)'),
						'date':('@now'),
						'color':('@color'),
						'img':('@image')
					}]
				})
			}
			break;
		default:
			return {
				mockFlag: false,
			}
			break;
	}
}
